package com.alianlab.zhouzhang.service;

import com.alianlab.zhouzhang.domain.BookType;
import com.alianlab.zhouzhang.service.dto.DtoBookType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Service Interface for managing BookType.
 */
public interface BookTypeService {

    /**
     * Save a bookType.
     *
     * @param bookType the entity to save
     * @return the persisted entity
     */
    BookType save(BookType bookType);

    /**
     * Get all the bookTypes.
     *
     * @param pageable the pagination information
     * @return the list of entities
     */
    Page<BookType> findAll(Pageable pageable);

    /**
     * Get the "id" bookType.
     *
     * @param id the id of the entity
     * @return the entity
     */
    BookType findOne(Long id);

    /**
     * Delete the "id" bookType.
     *
     * @param id the id of the entity
     */
    void delete(Long id);

    List<DtoBookType> getDtoBookType() throws Exception;
    List<DtoBookType> getAllDtoBookType(String p_type) throws  Exception;

}
